import React from 'react'
// 路由使用 history模式
import { BrowserRouter as Router ,Route, Switch } from 'react-router-dom';
import App from '../App'
import Home from '../pages/home'
import Xieyi from '../pages/home/xieyi'
import Succees from '../pages/succees'
import Picker from '../pages/picker'

class ERouter extends React.Component{

    render(){
        return (
            <Router>
                <App>
                    <Switch>
                        <Route exact path="/" component={Home}/>
                        <Route path="/home" component={Home}/>
                        <Route path="/succees" component={Succees}/>
                        <Route path="/picker" component={Picker}/>
                        <Route path="/xieyi" component={Xieyi}/>
                    </Switch>
                </App>
            </Router>
        );
    }
}
export default ERouter;
